<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      display: flex;
      justify-content: space-around;
    }

    .box {
      width: 300px;
      height: 400px;
      padding: 20px;
      border: 15px solid pink;
      border-image-source: url(./imges/2.png);
      border-image-slice: 30;
      border-image-width: 30px;
      border-image-repeat: round;
    }

    img {
      width: 300px;
      height: 400px;
    }

    .box1 {
      width: 300px;
      height: 400px;
      padding: 20px;
      border: 15px solid pink;
      border-image-source: url(./imges/1.png);
      border-image-slice: 72 55 30 190;
      border-image-width: 72px 55px 30px 190px;
      border-image-repeat: round;
    }
  </style>
</head>

<body>
  <div class="box">
    <img src="./imges/1.jpg" alt="">
  </div>
  <div class="box1">
    <img src="./imges/2.jpg" alt="">
  </div>
</body>

</html>